//@author A0096566M
#ifndef _FileInterface_h_
#define _FileInterface_h_


#include "Task.h"
class Records;
#include "records.h"
#include <fstream>
#include <cstring>

using namespace std;


class FileInterface{
private:
	string fileName;
	Records* taskList;
	fstream file;

public:


	void setRecords(Records& rec);
	void setFileName(string newFileName);
	string getFileName();

	int readFile();
	int writeFile();
	int clearFile();

};

#endif